[PATCH] IO-APIC in drivers/pci/quirks.c
This patch moves the IO-APIC include inside #ifdef CONFIG_X86_IO_APIC , which
is how Linux 2.6 has it. This is needed for architectures without
asm/io_apic.h. I've verified that x86 still builds; please apply.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
===== xen/drivers/pci/quirks.c 1.9 vs edited =====
doogie@brainfood.com
gm281@boulderdash.cl.cam.ac.uk
gm281@tetrapod.cl.cam.ac.uk
+hollisb@us.ibm.com
iap10@freefall.cl.cam.ac.uk
iap10@labyrinth.cl.cam.ac.uk
iap10@nidd.cl.cam.ac.uk
#include <xen/pci.h>
#include <xen/init.h>
#include <xen/delay.h>
-#include <asm/io_apic.h>
#undef DEBUG
#ifdef CONFIG_X86_IO_APIC
+#include <asm/io_apic.h>
+
/*
* VIA 686A/B: If an IO-APIC is active, we need to route all on-chip
* devices to the external APIC.